package com.hanbang.taitaigou.ui.activity.aboutme.myOrder;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.RelativeLayout;

import com.hanbang.taitaigou.R;
import com.hanbang.taitaigou.ui.activity.base.BaseActivity;
import com.hanbang.taitaigou.ui.activity.home.MainActivity;

/**
 * 评价成功页面
 * Created by fanxin on 2016/3/23.
 */
public class AboutMyOrderEvaluateOKActivity extends BaseActivity {
    private RelativeLayout rl_fanhui;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.about_my_order_evaluate_ok);
        initView();
        setOnClickListener();
    }

    /*
     * 设置点击事件
     */
    private void setOnClickListener() {
        rl_fanhui.setOnClickListener(onClickListener);

    }

    @SuppressWarnings("unused")
    private View.OnClickListener onClickListener = new View.OnClickListener() {

        @Override
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.rl_fanhui:
                    Intent intent = new Intent();
                    intent.setClass(AboutMyOrderEvaluateOKActivity.this, MainActivity.class);
//                    intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT);
                    startActivity(intent);
                    finish();
                    break;
                default:
                    break;
            }
        }
    };

    /*
     * 初始化view
     */
    private void initView() {
        // 设置顶部的标题
        setBackArrows(findViewById(R.id.top_bar_left));
        setTop(null, R.mipmap.back, getString(R.string.botton_tab2), null, 0);

        rl_fanhui = (RelativeLayout)findViewById(R.id.rl_fanhui);

    }

}
